# -*- coding: utf-8 -*-
"""
Created on Tue Oct 17 20:54:15 2023

@author: 楠川之木
"""
n=int(input("输入一个数：\n"))
def func():
    for i in range(2,n):
        if n % i == 0:
            print('{}不是素数'.format(n))
            break
    else:
        print('{0}是素数'.format(n))
func( )
